
def  get_yzm():
    import requests

    YZM_URL = "http://www.cqfr.net/include/vdimgck.php"

    HEADER = {
        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36'
    }
    res = requests.get(YZM_URL, HEADER)

    loc_image = open(r"D:\2.jpg", 'wb')

    loc_image.write(res.content)
    loc_image.close()

    import pytesseract
    from PIL import Image
    try:
         return pytesseract.image_to_string(Image.open("D:\\2.jpg")).replace(" ","")
    except:
        assert("something is round")
        pass


def

print(get_yzm())